﻿// MIT License
//
// Copyright (c) 2021-present zuohuaijun, Daming Co.,Ltd and Contributors
//
// 电话/微信：18020030720 QQ群1：87333204 QQ群2：252381476

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Net.InformationPlatform.Service.Product.Dto;
/// <summary>
/// 订单信息查询返回
/// </summary>
public class OrderCustomerBySelectOutput
{
    /// <summary>
    /// 订单编号
    /// </summary> 
    public string OrderId { get; set; } = string.Empty;


    /// <summary>
    /// T100单号
    /// </summary> 
    public string T100OrderId { get; set; } = string.Empty;

    /// <summary>
    /// 产品料号
    /// </summary> 
    public string SjMid { get; set; } = string.Empty;

    /// <summary>
    /// 客户料号
    /// </summary>
    public string CustProNum { get; set; } = string.Empty;

    /// <summary>
    /// 客户料号品名
    /// </summary>
    public string CustProName { get; set; } = string.Empty;

    //产品名称

    /// <summary>
    /// 客户简称
    /// </summary>
    public string UserName { get; set; } = string.Empty;

    /// <summary>
    /// 业务员名称
    /// </summary>
    public string CustName { get; set; } = string.Empty;

    /// <summary>
    /// 业务部门
    /// </summary>
    public string UserDepartmentName { get; set; } = string.Empty;

    /// <summary>
    /// 规格
    /// </summary>
    public string SjProdSpec { get; set; } = string.Empty;

    /// <summary>
    /// 产品状态
    /// </summary>
    public string OrderStatus { get; set; } = string.Empty;

    /// <summary>
    /// 单位
    /// </summary>
    public string Unit { get; set; } = string.Empty;

    /// <summary>
    /// 单位名称
    /// </summary>
    public string UnitName { get; set; } = string.Empty;

    /// <summary>
    /// 税种
    /// </summary>
    public string TaxType { get; set; } = string.Empty;

    /// <summary>
    /// 税种说明
    /// </summary>
    public string Introduce { get; set; } = string.Empty;

    /// <summary>
    /// 税率
    /// </summary>
    public int TaxLv { get; set; }


    /// <summary>
    /// 单价
    /// </summary>
    public double UnitPrice { get; set; }

    /// <summary>
    /// 税前金额
    /// </summary>
    public double BedorePrice { get; set; }

    /// <summary>
    /// 含税金额
    /// </summary>
    public double IntroStatus { get; set; }

    /// <summary>
    /// 税额
    /// </summary>
    public double TaxPrice { get; set; }

    /// <summary>
    /// 订购量
    /// </summary>
    public int PurchaseQuantity { get; set; }

    /// <summary>
    /// 订购金额
    /// </summary>
    public double PurchasePrice { get; set; }

    /// <summary>
    /// 库存
    /// </summary>
    public int Stock { get; set; }


    /// <summary>
    /// 下单日期
    /// </summary>
    public DateTime? OrderDate { get; set; }

    /// <summary>
    /// 交期
    /// </summary>
    public DateTime? SignDate { get; set; }


    /// <summary>
    /// 客户订购单号 
    /// </summary>
    public string CustomrOrderId { get; set; } = string.Empty;

    /// <summary>
    /// 订单性质 
    /// </summary>
    public string OrderDataName { get; set; } = string.Empty;


    /// <summary>
    /// 审核状态
    /// </summary>
    public string CheckStatus { get; set; } = string.Empty;

    /// <summary>
    /// 收款条件名称
    /// </summary>
    public string TaxTypeName { get; set; } = string.Empty;

    /// <summary>
    /// 币种
    /// </summary>
    public string CoinType { get; set; } = string.Empty;

    /// <summary>
    /// 取价方式
    /// </summary>
    public string GetPriceType { get; set; } = string.Empty;

    /// <summary>
    /// 订单备注
    /// </summary>
    public string OrderRemark { get; set; } = string.Empty;

    /// <summary>
    /// 客户料号规格
    /// </summary>
    public string MaterialSpecs { get; set; } = string.Empty;
    /// <summary>
    /// bom特性
    /// </summary>
    public string BomFeature { get; set; } = string.Empty;

    /// <summary>
    /// 连杆长度
    /// </summary>
    public string CouplerLength { get; set; } = string.Empty;

    //多交期

    /// <summary>
    /// 行状态
    /// </summary>
    public string RowStatus { get; set; } = string.Empty;


    /// <summary>
    /// 紧急度
    /// </summary>
    public string Urgency { get; set; } = string.Empty;

    /// <summary>
    /// 部分交货
    /// </summary>
    public bool IsPartialDelivery { get; set; }

    /// <summary>
    /// 出货据点
    /// </summary>
    public string DeliveryArea { get; set; } = string.Empty;

    /// <summary>
    /// 出货据点名称
    /// </summary>
    public string DeliveryAreaName { get; set; } = string.Empty;

    /// <summary>
    /// 收款据点
    /// </summary>
    public string InchargeArea { get; set; } = string.Empty;

    /// <summary>
    /// 收款据点名称
    /// </summary>
    public string InchargeAreaName { get; set; } = string.Empty;

    /// <summary>
    /// 理由码
    /// </summary>
    public string ReasonCode { get; set; } = string.Empty;

    /// <summary>
    /// 理由码说明
    /// </summary>
    public string ReasonCodeExplain { get; set; } = string.Empty;

    /// <summary>
    /// 结案/理由码
    /// </summary>
    public string FinisheCode { get; set; } = string.Empty;

    /// <summary>
    /// 结案/理由码说明
    /// </summary>
    public string FinisheCodeExplain { get; set; } = string.Empty;


    /// <summary>
    /// 长备注
    /// </summary>
    public string LongRemark { get; set; } = string.Empty;

    /// <summary>
    /// 文件路径
    /// </summary>
    public string[] FileList { get; set; }

    /// <summary>
    /// t100单号
    /// </summary>
    public string T100ID { get; set; } = string.Empty;

}


public class PriceInput {

    /// <summary>
    /// 订购量
    /// </summary>
    public int PurchaseQuantity { get; set; }

    /// <summary>
    /// 订购金额
    /// </summary>
    public double PurchasePrice { get; set; }

}

public class Price { 

    /// <summary>
    /// 产品总件数数
    /// </summary>
    public int ProductCount { get; set; }

    /// <summary>
    /// 产品种数
    /// </summary>
    public int TotalProduct { get; set; }

    /// <summary>
    /// 总金额
    /// </summary>
    public double TotalAmount { get; set; }
}